<template>
  <div class="container">
    <van-cell-group>
      <van-cell
              v-for="(item, index) in list" :key="index"
              :title="item.name"
              icon="arrow"
              @click="info(item)"
      />
    </van-cell-group>
  </div>
</template>

<script>
export default {
  data () {
    return {
      list: []
    }
  },
  methods: {
    init () {
      this.$http({
        fun: 'ctcofenquery',
        requestType: 'get',
        cb: res => {
          this.list = res
        }
      })
    },
    info (item) {
      window.location.href = item.url
    }
  },

  mounted () {
    this.init()
  }
}
</script>

<style>
</style>
